<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%-- <%@ page
	import="gop.dto.QnaDto,gop.dao.QnaDao1, gop.dto.UserDto, java.util.List, java.text.SimpleDateFormat"%> --%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	request.setCharacterEncoding("utf-8");
%>
<%
	int q_num = 0, ref = 1, step = 0, depth = 0;
	try {
		if (request.getParameter("q_num") != null) {
			q_num = Integer.parseInt(request.getParameter("q_num"));
			ref = Integer.parseInt(request.getParameter("ref"));
			step = Integer.parseInt(request.getParameter("step"));
			depth = Integer.parseInt(request.getParameter("depth"));
		}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Primus</title>

<link type="text/css" rel="stylesheet" href="/spring-GOP/css/common.css">
<link type="text/css" rel="stylesheet" href="/spring-GOP/css/style.css">
<link id="MainpageStyle" type="text/css" rel="stylesheet" href="/spring-GOP/css/notice/style_80.css">
<link id="pageStyle" type="text/css" rel="stylesheet" href="/spring-GOP/css/notice/style_8030.css">

<script src="http://code.jquery.com/jquery-1.8.0.js"></script>
<script type="text/javascript" src="/spring-GOP/js/common.js"></script>
<script type="text/javascript" src="/spring-GOP/js/jquery.validate.unobtrusive.min.js"></script>
<script type="text/javascript" src="/spring-GOP/js/Request_QNA.js"></script>

<%-- <jsp:useBean id="q" class="gop.dto.QnaDto" scope="page">
	<jsp:setProperty name="q" property="*" />
</jsp:useBean> --%>
<%-- <%
	UserDto user = (UserDto) session.getAttribute("user");
		boolean login = user == null ? false : true;
%> --%>

<script src="http://code.jquery.com/jquery-1.8.0.js"></script>
<script type="text/javascript" src="/spring-GOP/js/common.js"></script>
<%-- <script type="text/javascript">
	function onClick(q_num) {

		var hiddenField = document.createElement("input");
		hiddenField.setAttribute("type", "hidden");
		hiddenField.setAttribute("name", "q_num");
		hiddenField.setAttribute("value", q_num);

		document.listForm.appendChild(hiddenField);

		document.listForm.submit();
	}

	function onSubClick() {
		if (
<%=login%>
	) {
			location.href = "/GOP/pages/notice/qna/campsite/request_qna1.jsp";
		} else {
			alert("로그인을 하셔야 합니다.");
			location.href = "/GOP/pages/login/loginmain.jsp";
		}
	}
</script> --%>
</head>
<body>
	<form action="insert" method="post">

		<input type="hidden" name="q_num" value="<%=q_num%>">
		<input type="hidden" name="member_id" value="admin">
		<input type="hidden" name="member_name" value="관리자">
		<input type="hidden" name="email1" value="admin">
		<input type="hidden" name="email2" value="primus.com">
		<input type="hidden" name="contactnum1" value="02">
		<input type="hidden" name="contactnum2" value="1234">
		<input type="hidden" name="contactnum3" value="5678">
		<input type="hidden" name="ref" value="<%=ref%>">
		<input type="hidden" name="step" value="<%=step%>">
		<input type="hidden" name="depth" value="<%=depth%>">
		<!-- container -->
		<div id="container">
			<div id="content">
				<!-- <div> floating - 메인인 경우</div> -->
				<div id="main-shortCut">
					<div class="sub-main-section">
						<!-- 컨텐츠 작성 -->
						<div class="page-type3">
							<h2>
								<p>HELP DESK</p>
								Primus <span>고객센터</span>
							</h2>
						</div>
						<div class="listTab mainTab">
							<div class="ars">
								<strong>ARS : 1544-5522</strong>
								<p>상담원 연결 가능 시간 : 평일 오전 9시~오후 6시</p>
							</div>
							<ul style="height: 1000px;">
								<li>
									<p class="line" style="width: 990px; display: none;"></p>
									<h3 class="tab-title">
										<a href="/spring-GOP/help/notice/list"><span
											style="width: 328px;">공지사항</span></a>
									</h3>
									<ul class="ul-tab main-tab tab-content" style="display: none;">
									</ul>
								</li>
								<li>
									<p class="line" style="width: 990px; display: none;"></p>
									<h3 class="tab-title">
										<a href="/spring-GOP/help/faq/list"><span style="width: 328px;">FAQ</span></a>
									</h3>
									<ul class="ul-tab main-tab tab-content" style="display: none;">
									</ul>
								</li>
								<li>
									<p class="line" style="width: 990px; display: block;"></p>
									<h3 class="tab-title on">
										<a><span style="width: 328px;">문의하기 관리</span></a>
									</h3>
									<ul class="ul-tab main-tab tab-content" style="display: block;">
										<li class="t-head">
											<h4 class="tit-tab">문의하기</h4>
										</li>
										<li>
											<div class="listTab subTab">
												<ul>
													<li>
														<h5 class="tab-title on">
															<a href="/spring-GOP/help/qna/qna_admin/list"
																tabindex="0"><span>1:1 문의하기 관리</span></a>
														</h5>
														<ul class="ul-tab sub-tab tab-content"
															style="display: block;">
															<!--  1:1 문의하기 내 상자 시작 -->
															<li class="tab-cont tab-ac">
																<table width="100%" class="inquiry-table"
																	summary="이 표는 1:1 문의하기 정보를 제공하며 이름, 극장, 영화명, 관람일/인원, 제목, 내용, 이메일, 연락처로 구성되어 있습니다.">
																	<caption class="hide">1:1 문의하기 목록</caption>
																	<tbody>
																		<tr>
																			<!--  답변제목 들어가는 곳 시작 -->
																			<th scope="row" class="inquiry-tit"><label
																				for="Title">*답변제목</label></th>
																			<td>
																				<div class="input-box">
																					<%
																						if (request.getParameter("q_num") == null) {
																					%>

																					<input class="input-box inquiry2" name="subject"
																						type="text">

																					<%
																						} else {
																					%>
																					<input class="input-box inquiry2" type="text"
																						name="subject" value="[답변]" />
																					<%
																						}
																					%>
																					<div>
																						<span class="field-validation-valid"
																							data-valmsg-for="Title"
																							data-valmsg-replace="true"></span>
																					</div>
																				</div>
																			</td>
																		</tr>
																		<!--  답변제목 들어가는 곳 끝 -->
																		<tr class="inquiry-con inquiry-con2">
																			<th class="inquiry-con2-1" scope="row"><label
																				for="content">*답변내용</label></th>
																			<td class="inquiry-con2-2">
																				<p>html태그, 프로그램 소스 및
																					특수문자(~!\#$%^&amp;*\()\=+_&lt;&gt; 등)입력시 글이 게시되지
																					않습니다.</p> <textarea class="inquiry-content"
																					name="content"></textarea>
																				<div>
																					<span class="field-validation-valid"></span>
																				</div>
																			</td>
																		</tr>
 																		<tr>
																			<th scope="row" class="inquiry-tit"><label
																				for="Title">*패스워드</label></th>
																			<td>
																				<div class="input-box">
																					<input class="input-box inquiry2" name="pass"
																						type="password">
																				</div>
																			</td>
																		</tr>
																		<!--  테이블 끝 선 시작 -->
																		<tr class="inquiry-tel">
																			<th scope="row"></th>
																			<td></td>
																		</tr>
																		<!-- 테이블 끝 선 끝 -->
																	</tbody>
																</table>
																<div class="inquiry-btn4">
																	<span> <a href="#" onClick="self.location.href=document.referrer"
																		class="button h29 w70 white"><b>취소</b></a>
																	</span> <span> <input type="submit" value="답변 작성하기"
																		class="button h29 w120 orange">
																	</span>
																</div>
															</li>
															<!-- tab-cont -->
														</ul>
													</li>
													<!--  1:1 문의하기 탭 끝 -->
													<!--  광고 및 제휴문의 탭 시작 -->
													<li>
														<h5 class="tab-title">
															<a href="/spring-GOP/help/qna/qna_admin/list1"><span>광고
																	및 제휴문의 관리</span></a>
														</h5>
														<ul class="ul-tab sub-tab tab-content"
															style="display: none;">
															<!-- tab-cont -->
														</ul>
													</li>
													<li>
														<ul class="ul-tab sub-tab tab-content"
															style="display: none;">
															<!-- tab-cont -->
														</ul>
													</li>
												</ul>
											</div>
										</li>
									</ul>
								</li>
							</ul>
						</div>
						<!--//listTab mainTab-->

					</div>
				</div>
			</div>
		</div>
	</form>
	<%
	}catch(Exception e){}
%>
</body>
</html>